.layout-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f4f7f6;
    /* 浅色背景 */
    color: #333;
    /* 深色字体 */
    overflow-x: auto;
}

.header {
    background-color: #00914D;
    /* 国网绿背景 */
    padding: 10px 20px;
    /* 调整内边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo {
    height: 40px;
    /* 调整图片高度 */
    margin-right: 15px;
    /* 图片右侧间距 */
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
    /* 白色字体 */
    flex-grow: 1;
    /* 标题占据剩余空间 */
}

.user-info {
    font-size: 16px;
    color: #00703B;
    /* 国网绿深色字体 */
    padding: 15px 20px;
    /* 调整内边距 */
    margin-bottom: 0;
    /* 移除底部间距 */
    border-bottom: 1px solid #c5e1c7;
    /* 浅国网绿边框 */
    text-align: left;
    /* 文本靠左对齐 */
    background-color: #e8f5e9;
    /* 浅国网绿背景 */
    box-shadow: 0 1px 3px rgba(0, 145, 77, 0.1);
    /* 添加轻微阴影 */
    font-weight: 500;
    /* 稍微加粗字体 */
    cursor: pointer;
}

.user-info div {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.user-info div i {
    margin-right: 8px;
    font-size: 18px;
}

.shutdown-button {
    padding: 5px 10px;
    /* 调整内边距 */
    background-color: rgba(255, 255, 255, 0.2);
    /* 半透明白色背景 */
    color: #ffffff;
    /* 白色字体 */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* 半透明白色边框 */
    border-radius: 4px;
    /* 圆角 */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
    /* 左侧间距 */
}

.shutdown-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}


.main-content {
    display: flex;
    flex: 1;
    overflow-x: auto;
    /* 允许水平滚动 */
}

.sidebar {
    width: 220px;
    background-color: #d6ebd9;
    /* 浅国网绿背景 */
    padding: 20px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.sidebar li:hover {
    color: #00914D;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: auto;
}

.menu-search-input {
    width: calc(100% - 20px);
    padding: 8px 30px 8px 10px;
    margin: 1px;
    border: 1px solid #00914D !important;
    /* 国网绿边框 */
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.menu-search-input:focus {
    outline: none;
    border-color: #00914D;
    /* 国网绿边框 */
    box-shadow: 0 0 0 0.2rem rgba(0, 145, 77, 0.25);
    /* 国网绿阴影 */
}

.menu-search-input::placeholder {
    color: #999;
}

.search-filter input,
.search-filter select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.search-filter button {
    padding: 10px 20px;
    background-color: #00914D;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-filter button:hover {
    background-color: #007A3F;
}

.data-table {
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    /* 浅色边框 */
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
}

.data-table th {
    background-color: #f2f2f2;
    /* 浅灰色背景 */
    color: #333;
    /* 深色字体 */
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
    /* 交替行背景 */
}

.data-table tr:hover {
    background-color: #e9e9e9;
    /* 悬停背景 */
}

.sidebar {
    width: 250px;
    background-color: #e8f5e9;
    /* 浅国网绿背景 */
    padding: 10px;
    /* Adjusted padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    overflow-y: auto;
    font-family: 'Arial', sans-serif;
    /* Specify a font */
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
    /* 确保侧边栏占满高度 */
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto; /* Add scroll if menu exceeds height */
}

.menu-item {
    margin-bottom: 5px;
    /* Reduced margin */
    border-radius: 4px;
    /* Smaller border radius */
    overflow: hidden;
}

.menu-item-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    /* Adjusted padding */
    cursor: pointer;
    font-size: 16px;
    /* Slightly smaller font */
    color: #333;
    /* 深色字体 */
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #eee;
    /* Subtle separator */
}

.menu-item-header:hover {
    background-color: #e8f5e9; /* 浅国网绿背景 */
    color: #00914D; /* 国网绿字体 */
}

.menu-item.selected > .menu-item-header {
    background-color: #00914D; /* 国网绿背景 */
    color: #ffffff; /* 白色字体 */
    border-bottom-color: #00914D;
}

.menu-item-header i {
    margin-right: 8px;
    /* Adjusted margin */
    font-size: 17px;
    /* Adjusted icon size */
}

.toggle-icon {
    margin-left: auto;
    font-weight: bold;
    transition: transform 0.3s ease;
    font-size: 14px;
    /* Smaller toggle icon */
}

.menu-item.expanded > .menu-item-header .toggle-icon {
    transform: rotate(90deg);
}

.submenu-list {
    list-style: none;
    padding-left: 15px;
    /* Adjusted indentation */
    margin-top: 0;
    margin-bottom: 0;
    background-color: #e8f5e9;
    /* 浅国网绿背景 */
    border-top: 1px solid #e9ecef;
}

.menu-item.expanded .submenu-list {
    display: block;
}

.submenu-item {
    padding: 10px 10px;
    /* Adjusted padding */
    cursor: pointer;
    font-size: 14px;
    /* Smaller font */
    color: #333;
    /* 深色字体 */
    transition: background-color 0.2s ease;
}

.submenu-item:hover {
    background-color: #e8f5e9; /* 浅国网绿背景 */
    color: #00914D; /* 国网绿字体 */
}

.submenu-item.selected {
    background-color: #00914D; /* 国网绿背景 */
    color: #ffffff; /* 白色字体 */
    font-weight: normal;
    /* Keep normal font weight for submenu items */
}

.submenu-item i {
    margin-right: 6px;
    /* Adjusted margin */
    font-size: 15px;
    /* Adjusted icon size */
}

/* Adding some tree-like visual cues */
.menu-item,
.submenu-item {
    position: relative;
}

.submenu-list .submenu-item::before {
    content: '';
    position: absolute;
    left: 5px;
    /* Position the line */
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc;
    /* Line color */
}

.submenu-list .submenu-item::after {
    content: '';
    position: absolute;
    left: 5px;
    /* Position the line */
    top: 18px;
    /* Position the horizontal line */
    width: 10px;
    /* Length of the horizontal line */
    height: 1px;
    background-color: #ccc;
    /* Line color */
}

.submenu-list .submenu-item:last-child::before {
    height: 18px;
    /* Shorten the vertical line for the last item */
}

/* 侧边栏底部样式 - 与用户登录信息区域保持一致的配色 */
.sidebar-footer {
    font-size: 16px;
    color: #00703B;
    /* 国网绿深色字体 */
    padding: 15px 20px;
    /* 调整内边距 */
    /* 将元素推到底部 */
    border-top: 1px solid #c5e1c7;
    /* 浅国网绿边框 */
    text-align: center;
    /* 文本居中 */
    background-color: #e8f5e9;
    /* 浅国网绿背景 */
    box-shadow: 0 -1px 3px rgba(0, 145, 77, 0.1);
    /* 添加轻微阴影 */
    font-weight: 500;
    /* 稍微加粗字体 */
}

